package com.accp.vehiclecare.biz.lscbiz;

import com.accp.vehiclecare.dao.lscdao.UtbaMapper;
import com.accp.vehiclecare.pojo.User;
import com.accp.vehiclecare.vo.lscvo.UtbaVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class UtbaBiz {
    @Autowired
    private UtbaMapper dao;

    @Transactional(propagation = Propagation.SUPPORTS, isolation = Isolation.READ_COMMITTED, readOnly = true)
    public List<UtbaVo> querbyid(Integer uid){
       return dao.querbyid(uid);
    }

    @Transactional(propagation = Propagation.SUPPORTS, isolation = Isolation.READ_COMMITTED, readOnly = true)
    public User queruser(String rid){
        return  dao.queruser(rid);
    }
}
